package com.face.server.entity;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * 宿舍楼实体
 */
@Document
@Data
public class DormitoryBuild extends Entity {

    //    楼幢编号
    @Indexed(unique = true)
    private int buildingNum;

    //  入住数
    private int checkedNum;

    // 入住房间数
    private int checkedRoom;

    // 层数
    private int floorNum;

    // 每层房间
    private int roomPerFloor;

    // 访问人数
    @Transient
    private int visitorNum;

    // 今日学生进出数
    @Transient
    private int todayStudentNum;

    // 今日访客进出数
    @Transient
    private int todayVisitorNum;

}
